//
//  MainPageLocationTableViewCell.m
//  Shengzhuli
//
//  Created by subook on 16/8/25.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "MainPageLocationTableViewCell.h"

@interface MainPageLocationTableViewCell()

@property (strong, nonatomic) IBOutlet UIButton *noLocationBtn;
@property (strong, nonatomic) IBOutlet UIButton *locationOneBtn;
@property (strong, nonatomic) IBOutlet UIButton *locationTwoBtn;
@property (strong, nonatomic) IBOutlet UIButton *locationThreeBtn;
@property (strong, nonatomic) IBOutlet UIButton *locationFourBtn;

@property (nonatomic,strong) UIButton *selectBtn;
@end
@implementation MainPageLocationTableViewCell

- (IBAction)locationClick:(UIButton *)btn
{
    if (self.selectBtn == btn) return;
    btn.selected = YES;
    self.selectBtn.selected = NO;
    self.selectBtn = btn;
    if (self.selectBlock) {
        self.selectBlock(btn.tag);
    }
}


@end
